#include <stdio.h>
int main()
{
	int a,b,i;
	scanf("%d,%d,%d",&a,&b,&i);
	i = (a>b)?a:b;
	printf("%d,%d",a,b);
	return 0;
 } 
